package com.easyexcle.demo.easyExcel.dymic;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @Author: lkz
 * @Title: HeadVo
 * @Description: 动态列头部实体
 * @Date: 2023/6/30 13:51
 */
@Data
@Builder
public class HeadVo implements Comparable<HeadVo>{

    /**
     * 列头名
     */
    private List<String> headTitle;
    /**
     * 字段名
     */
    private String key;
    /**
     * 主排序
     */
    private int index;


    @Override
    public int compareTo(HeadVo o) {
        return this.index - o.getIndex();
    }



}
